﻿namespace CoreEx.Common.Extensions
{
    /// <summary>
    /// Represents a class that is capable of converting a noun between its singular and plural form. 
    /// </summary>
    public interface IPluralizer
    {
        /// <summary>
        /// Converts the <paramref name="singularNoun"/> into its plural form.
        /// </summary>
        /// <param name="singularNoun">The target singular noun</param>
        /// <returns>The plural form of the <paramref name="singularNoun"/>.</returns>
        string ToPlural(string singularNoun);

        /// <summary>
        /// Converts the <paramref name="pluralNoun"/> into its singular form.
        /// </summary>
        /// <param name="pluralNoun">The target plural noun</param>
        /// <returns>The singular form of the <paramref name="pluralNoun"/>.</returns>
        string ToSingular(string pluralNoun);
    }
}
